package com.book.bookmanager.mapper;




import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.book.bookmanager.pojo.Book;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface bookMapper extends BaseMapper<Book> {
    /**
     * 全查书本信息
     */
    public List<Book> selectAll();
    public void deleteById(Integer id);
    public void insertBook(Book book);
    public Book selectById(Integer id);
    public void updateBook(Book book);
    public void addPhoto(Book book);
    IPage<Book> selectPage(Page page);

}
